﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.InsuranceWarranty;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IInsuranceWarrantyRecordItemService
    {
        InsuranceWarrantyRecordItem LoadByID(long id);
        bool Exist(long id);

        /// <summary>
        /// 根据报案ID和本次添加的案件处理详情ID，删除本次添加的案件处理详情ID以外的
        /// </summary>
        /// <param name="iwrID"></param>
        /// <param name="notDeleteIWRItemIds"></param>
        /// <param name="opreatUser"></param>
        /// <returns></returns>
        bool DeleteBy(long iwrID, List<long> notDeleteIWRItemIds, string opreatUser,string userDisPlayName);
        /// <summary>
        /// 根据报案ID获取标签列表
        /// </summary>
        /// <param name="insuranceWarrantyRecordId">报案ID</param>
        /// <returns></returns>
        IQueryable<InsuranceWarrantyRecordItem> LoadByInsuranceWarrantyRecordId(long insuranceWarrantyRecordId);
        IQueryable<InsuranceWarrantyRecordItem> GetPagingList(InsuranceWarrantyRecordItemModel model, out int total);

    }
}
